package com.wl.java_spring_boot01.modules.account.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 汪林
 * @date 2020/8/17 19:57
 */
@Controller
@RequestMapping("/account")
public class AccountController {

    /**登陆成功--用户页面
     * 127.0.0.1/account/users --get
     * @return
     */
    @GetMapping("/users")
    public String usersPage(){
        return "index";
    }

    /**登录页面
     * 127.0.0.1/account/login ---- get
     */
    @GetMapping("/login")
    public String loginPage() {
        return "indexSimple";
    }

    /**注册页面
     * 127.0.0.1/account/register ---- get   /account/roles
     */
    @GetMapping("/register")
    public String registerPage() {
        return "indexSimple";
    }

    /**角色页面
     * 127.0.0.1/account/roles ---- get
     */
    @GetMapping("/roles")
    public String rolesPage() {
        return "index";
    }
}
